package cn.rongdao.jrkabao.model.information;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.information.CardByToolsBean;
import cn.rongdao.jrkabao.model.api.BaseSuDaiModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 17/5/11
 */

public class CardInfoByCardNumberModel extends BaseSuDaiModel {

    public static CardInfoByCardNumberModel getInstance() {
        return getPresent(CardInfoByCardNumberModel.class);
    }

    public void execute(String cardnum, Observer<CardByToolsBean> observer) {
        addParamStrings("cardnum", cardnum);
        Observable observable = mServletApi.getCardInfoByCardNumber(mParams).map(new HttpFunction());
        toSubscribe(observable, observer);
    }
}